<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<div class="col-md-3 col-md-pull-9">
	<ul class="nav nav-pills nav-stacked">
		<li class="active"><a href="#">导航</a></li>
		<li><a href="map">地图找房</a></li>
	</ul>
	<ul class="nav nav-pills nav-stacked">
		<li class="active"><a href="#">热门区域</a></li>
		<c:forEach var="i" items="${districts}" end="2">
			<li><a href="getByDistrict?dId=${i.id}">${i.name }</a></li>
		</c:forEach>
	</ul>
	<ul class="nav nav-pills nav-stacked">
		<li class="active"><a href="#">搜索查询</a></li>
		<form class="navbar-form pull-right"
			style="padding: 16px 44px" action="gethousesByConditions"
			method="get">
			区域：
			<select name="districtId">
				<option value="0">--请选择区域--</option>
				<c:forEach var="i" items="${districts}">
					<option value="${i.id}">${i.name }</option>
				</c:forEach>
			</select>
			<br/>
			<br/>
			街道：
			<select name="streetId">
				<option value="0">--请选择街道--</option>
				<c:forEach var="i" items="${streets}">
					<option value="${i.id}">${i.name }</option>
				</c:forEach>
			</select>
			<br/>
			<br/>
			类型：
			<select name="typeId">
				<option value="0">--请选择类型--</option>
				<c:forEach var="i" items="${types}">
					<option value="${i.id}">${i.name }</option>
				</c:forEach>
			</select>
			 <br/>
			<br/>
			标题：<input type="text" name="topic" size="12"/>
			<hr/>
			<button type="submit" class="btn">搜索</button>
		</form>
	</ul>

</div>